from django.db import models

<<<<<<< HEAD
# Create your models here.

class Activity(models.Model):
    pass
    name = models.CharField(max_length=32,verbose_name='活动名称')
    city = models.CharField(max_length=32,verbose_name='举办城市')
    cover = models.CharField(max_length=128,verbose_name='封面')
    start_time = models.DateTimeField(verbose_name='开始时间')
    end_time = models.DateTimeField(verbose_name='结束时间')
    deadline = models.DateTimeField(verbose_name='报名截止')
    address = models.CharField(max_length=64,verbose_name='主办地点')
    sponsor = models.CharField(max_length=16,verbose_name='主办方')
    abstract = models.TextField(verbose_name='大会简介')
    detail = models.TextField(verbose_name='议题简介')
    website = models.CharField(max_length=128,verbose_name='活动官网')
    status = models.SmallIntegerField(verbose_name='报名状态',default=1)
    click_count = models.IntegerField(verbose_name='点击量',default=0)
=======

# Create your models here.
from malonghui.utils.models import BaseModel


class Activity(BaseModel):
    """活动"""
    name = models.CharField(max_length=32, verbose_name='活动名称')
    city = models.CharField(max_length=32, verbose_name='举办城市')
    cover = models.CharField(max_length=128, verbose_name='封面')
    start_time = models.DateTimeField(verbose_name='开始时间')
    end_time = models.DateTimeField(verbose_name='结束时间')
    deadline = models.DateTimeField(verbose_name='报名截止')
    address = models.CharField(max_length=64, verbose_name='主办地点')
    sponsor = models.CharField(max_length=16, verbose_name='主办方')
    abstract = models.TextField(verbose_name='大会简介')
    detail = models.TextField(verbose_name='议题简介')
    website = models.CharField(max_length=128, verbose_name='活动官网')
    status = models.SmallIntegerField(verbose_name='报名状态', default=1)
    click_count = models.IntegerField(verbose_name='点击量', default=0)
>>>>>>> c0e411a615cc06dcd36e049646153479c83a5e37

    class Meta:
        db_table = 'tb_activity'
        verbose_name = '活动'
        verbose_name_plural = verbose_name

    def __str__(self):
<<<<<<< HEAD
        return str(self.id) +self.name









=======
        return str(self.id) + self.name
>>>>>>> c0e411a615cc06dcd36e049646153479c83a5e37
